import request from '@/utils/request'
// --------  广告管理 --------


let BASE_ADDRESS = 'market/ad'

//  分页查询 -- 列表查询
export const getAdListApi = (params) => {
	return request({
		url: `${BASE_ADDRESS}/list`,
		method: "get",
		params
	})
}
//  添加 
export const getAdAddApi = (data) => {
	return request({
		url: `${BASE_ADDRESS}/add`,
		method: "post",
		data
	})
}

// editStatus

//  添加 
export const getAdEditStatusApi = (data) => {
	return request({
		url: `${BASE_ADDRESS}/editStatus`,
		method: "put",
		data
	})
}